home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4532 < prev    next >
Encoding:
Text File  |  1996-08-06  |  808 b   |  45 lines

  1. Path: lrz-muenchen.de!wap7!west
  2. From: west@emt.e-technik.tu-muenchen.de (Robert Westendorp)
  3. Newsgroups: comp.lang.c++
  4. Subject: Beginner: How to #include
  5. Date: Tue, 30 Jan 1996 18:32:06 UNDEFINED
  6. Organization: TU-Muenchen
  7. Distribution: world
  8. Message-ID: <west.32.008AC8C0@emt.e-technik.tu-muenchen.de>
  9. NNTP-Posting-Host: wap7.emt.e-technik.tu-muenchen.de
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]
  11.  
  12. Hi there, 
  13.  
  14. following problem with hierarchical including:
  15.  
  16. my_data.h:
  17.  
  18. #include "picture.h"
  19.  
  20. class A 
  21. {
  22. ..
  23.  CPicture m_picture;
  24.  
  25. ..
  26. }
  27.  
  28. my_program.cpp:
  29. #INCLUDE "PICTURE.H"
  30. #include "my_data.h"
  31.  
  32. program code...
  33.  
  34. How can I avoid to include PICTURE.H in all of my files using
  35. class A from my_data.prg?
  36. There are lots of my_programm.cpp and a couple of my_data.h(s)!
  37.  
  38. thanx in advance!
  39.  
  40. C. Kellner
  41.  
  42.  
  43.  
  44.  
  45.